package com.ruoyi.squadweb.service.impl;

import java.util.List;

import com.ruoyi.squadweb.domain.SquadMatchTeam;
import com.ruoyi.squadweb.mapper.SquadMatchTeamMapper;
import com.ruoyi.squadweb.service.ISquadMatchTeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 战队管理Service业务层处理
 *
 * @author LJY
 * @date 2024-07-13
 */
@Service
public class SquadMatchTeamServiceImpl implements ISquadMatchTeamService
{
    @Autowired
    private SquadMatchTeamMapper squadMatchTeamMapper;

    /**
     * 查询战队管理
     *
     * @param id 战队管理主键
     * @return 战队管理
     */
    @Override
    public SquadMatchTeam selectSquadMatchTeamById(Long id)
    {
        return squadMatchTeamMapper.selectSquadMatchTeamById(id);
    }

    /**
     * 查询战队管理列表
     *
     * @param squadMatchTeam 战队管理
     * @return 战队管理
     */
    @Override
    public List<SquadMatchTeam> selectSquadMatchTeamList(SquadMatchTeam squadMatchTeam)
    {
        return squadMatchTeamMapper.selectSquadMatchTeamList(squadMatchTeam);
    }

    /**
     * 新增战队管理
     *
     * @param squadMatchTeam 战队管理
     * @return 结果
     */
    @Override
    public int insertSquadMatchTeam(SquadMatchTeam squadMatchTeam)
    {
        return squadMatchTeamMapper.insertSquadMatchTeam(squadMatchTeam);
    }

    /**
     * 修改战队管理
     *
     * @param squadMatchTeam 战队管理
     * @return 结果
     */
    @Override
    public int updateSquadMatchTeam(SquadMatchTeam squadMatchTeam)
    {
        return squadMatchTeamMapper.updateSquadMatchTeam(squadMatchTeam);
    }

    /**
     * 批量删除战队管理
     *
     * @param ids 需要删除的战队管理主键
     * @return 结果
     */
    @Override
    public int deleteSquadMatchTeamByIds(Long[] ids)
    {
        return squadMatchTeamMapper.deleteSquadMatchTeamByIds(ids);
    }

    /**
     * 删除战队管理信息
     *
     * @param id 战队管理主键
     * @return 结果
     */
    @Override
    public int deleteSquadMatchTeamById(Long id)
    {
        return squadMatchTeamMapper.deleteSquadMatchTeamById(id);
    }
}
